package org.boot.fast.service;

import org.boot.fast.pojo.FileInfoDO;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

public interface FileUploadService {

    FileInfoDO upload(MultipartFile file, String uploadUser);
    List<Long> uploadBatch(List<MultipartFile> files, String uploadUser);


    Boolean delete(Long id);

    void download(Long id, HttpServletResponse response);

    void preview(Long id, HttpServletResponse response);

}
